package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.SysDevices;

import java.util.List;
import java.util.Map;

public interface SysDevicesService {

    int deleteByPrimaryKey(Integer id);

    int insert(SysDevices record);

    int insertSelective(SysDevices record);

    SysDevices selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysDevices record);

    int updateByPrimaryKey(SysDevices record);

    int deleteDevice(int id);

    List<SysDevices> listAll(String device_code);

    SysDevices getDeviceByCode(String code);

    SysDevices getDeviceById(int id);

    List<SysDevices> listDeviceByType(String type);

    List<SysDevices> listAllDevices(PageInfo pi, Map<String, Object> map);

    List<SysDevices> listAllReportDevices(Map<String, Object> map);

    List<SysDevices> listAllDevicesBackend(PageInfo pi, Map<String, Object> map);

    long listAllDevicesCount(Map<String, Object> map);

    long listAllDevicesCountBackend(Map<String, Object> map);

    List<Map<String,Object>> getAllDeviceList(Map<String, Object> map);

    List<SysDevices> getGroupDeviceList(Map<String, Object> map);

}
